package com.cxria.problem.service

import com.cxria.problem.dto.PasswordDto
import com.cxria.problem.entity.User
import org.springframework.stereotype.Service

@Service
interface UserService {

	List<User> findAll()

    User getByUsername(String username)

    User getById(Integer userId)

    void add(User user)

    void delete(long id)

    void updatePassword(PasswordDto passwordDto)

    User getCurrentUser()

}
